package com.tang.provider.web;

import com.google.common.collect.Maps;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author Tang
 * @classname ProviderController
 * @description [  ]
 * @date 2021/12/20 22:01
 */
@RestController
@RequestMapping("/provider")
public class ProviderController {

    @GetMapping("/index")
    public Object index() {
        HashMap<Object, Object> newHashMap = Maps.newHashMap();
        newHashMap.put("name", "tang");
        newHashMap.put("age", 18);
        return newHashMap;
    }


}